package cn.kgc.novel.service;

import cn.kgc.novel.pojo.Bookcontext;
import cn.kgc.novel.service.impl.BookcontextServiceImpl;
import org.apache.ibatis.annotations.Param;

import java.util.List;
//杨将
public interface BookcontextService {
    //跟据小说名和作者id查数据
    public List<Bookcontext> selectshow(String bookname,Integer uid);
    //跟据章节和小时名称那内容
    public Bookcontext flieshow(int titleid,String bookname);
    //根据小说名拿作者id
    public Integer naid(String name);
    //拿最近更新的章节
    public List<Bookcontext> nazhanges(String category,String sex);

    //增加小说章节
    public void addBookcontext(Bookcontext bookcontext);
    //更据书的id和作者id来查询 这本书未发布的草稿章节
    public List<Bookcontext> draftchapter(Integer bid,Integer uid,Integer titleid);
    //从未发布换成待审核
    public void updatedraftchapter(Integer bid,Integer uid,Integer titleid);

   public void updateBookcontext(Bookcontext bookcontext);

    int deletecaogao(Integer uid, Integer bid, Integer titleid);

    //查看所有未审核的章节,袁宇灏
    public List<Bookcontext> findByStatuc();
    //通过cid查找
    List<Bookcontext> findByCid(Integer cid);
    //2023-11-23审核
    void audit(String status, Integer cid, String reason);

    public void deleteBookcontext(int authorid,int bid);

}
